\hypertarget{group__BasicDef}{
\section{BasicDef}
\label{group__BasicDef}\index{BasicDef@{BasicDef}}
}
\subsection*{宏定义}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__BasicDef_gad78104e02f13751dab9952ba4d9788f8}{RT\_\-VERSION}~1L
\item 
\#define \hyperlink{group__BasicDef_gae2986d88dd8f5b076c9089931463c6d2}{RT\_\-SUBVERSION}~1L
\item 
\#define \hyperlink{group__BasicDef_ga8ac050659ff67d9c8be5b59ddd1790cc}{RT\_\-REVISION}~0L
\item 
\#define {\bfseries RTTHREAD\_\-VERSION}
\item 
\#define \hyperlink{group__BasicDef_ga5e3d4a1b993df67473bc161096dba218}{RT\_\-TRUE}~1
\item 
\#define \hyperlink{group__BasicDef_gaad465603954df66df7791befd55ff325}{RT\_\-FALSE}~0
\item 
\#define \hyperlink{group__BasicDef_ga8e803706fb0e206869f5f706c1289949}{RT\_\-ALIGN}(size, align)~(((size) + (align) -\/ 1) \& $\sim$((align) -\/ 1))
\item 
\#define \hyperlink{group__BasicDef_gadf0d0c14b78871331bac6701d7ee6e42}{RT\_\-ALIGN\_\-DOWN}(size, align)~((size) \& $\sim$((align) -\/ 1))
\item 
\#define \hyperlink{group__BasicDef_gab3633bbb2a09b3406b19463ffc634345}{RT\_\-NULL}~(0)
\end{DoxyCompactItemize}
\subsection*{类型定义}
\begin{DoxyCompactItemize}
\item 
typedef signed char \hyperlink{group__BasicDef_ga0718c1881c49fdb1cfd55946ddfe0f64}{rt\_\-int8\_\-t}
\item 
typedef signed short \hyperlink{group__BasicDef_gad48863e8de10f558c764213f434d14cd}{rt\_\-int16\_\-t}
\item 
typedef signed long \hyperlink{group__BasicDef_gae5c6ccee15f067714ca9c44e509c4047}{rt\_\-int32\_\-t}
\item 
typedef unsigned char \hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t}
\item 
typedef unsigned short \hyperlink{group__BasicDef_ga5acba55f46553417996ac70828b874da}{rt\_\-uint16\_\-t}
\item 
typedef unsigned long \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t}
\item 
typedef int \hyperlink{group__BasicDef_ga3e03a3519ef7e33d13ebd34c482db49c}{rt\_\-bool\_\-t}
\item 
typedef long \hyperlink{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}{rt\_\-base\_\-t}
\item 
typedef unsigned long \hyperlink{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{rt\_\-ubase\_\-t}
\item 
typedef \hyperlink{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}{rt\_\-base\_\-t} \hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t}
\item 
typedef \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} \hyperlink{group__BasicDef_ga102dfa15727cd1166d97cf5392dfe3b9}{rt\_\-time\_\-t}
\item 
typedef \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} \hyperlink{group__BasicDef_ga66c400929925784dba020d671154978a}{rt\_\-tick\_\-t}
\item 
typedef \hyperlink{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}{rt\_\-base\_\-t} \hyperlink{group__BasicDef_gac0517c5e13c1374877d8462b84e72755}{rt\_\-flag\_\-t}
\item 
typedef \hyperlink{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{rt\_\-ubase\_\-t} \hyperlink{group__BasicDef_ga8011d259fdfc54b8a9aa006b4d49ac14}{rt\_\-size\_\-t}
\item 
typedef \hyperlink{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{rt\_\-ubase\_\-t} \hyperlink{group__BasicDef_ga79ffea5dac0a5c145822b5b1c9b55a09}{rt\_\-dev\_\-t}
\item 
typedef \hyperlink{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}{rt\_\-base\_\-t} \hyperlink{group__BasicDef_ga0fd4981851ce935649b6723a81f2f1bf}{rt\_\-off\_\-t}
\end{DoxyCompactItemize}


\subsection{宏定义文档}
\hypertarget{group__BasicDef_ga8e803706fb0e206869f5f706c1289949}{
\index{BasicDef@{BasicDef}!RT\_\-ALIGN@{RT\_\-ALIGN}}
\index{RT\_\-ALIGN@{RT\_\-ALIGN}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-ALIGN}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-ALIGN(size, \/  align)~(((size) + (align) -\/ 1) \& $\sim$((align) -\/ 1))}}
\label{group__BasicDef_ga8e803706fb0e206869f5f706c1289949}
Return the most contiguous size aligned at specified width. \hyperlink{group__BasicDef_ga8e803706fb0e206869f5f706c1289949}{RT\_\-ALIGN(13, 4)} would return 16. \hypertarget{group__BasicDef_gadf0d0c14b78871331bac6701d7ee6e42}{
\index{BasicDef@{BasicDef}!RT\_\-ALIGN\_\-DOWN@{RT\_\-ALIGN\_\-DOWN}}
\index{RT\_\-ALIGN\_\-DOWN@{RT\_\-ALIGN\_\-DOWN}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-ALIGN\_\-DOWN}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-ALIGN\_\-DOWN(size, \/  align)~((size) \& $\sim$((align) -\/ 1))}}
\label{group__BasicDef_gadf0d0c14b78871331bac6701d7ee6e42}
Return the down number of aligned at specified width. \hyperlink{group__BasicDef_gadf0d0c14b78871331bac6701d7ee6e42}{RT\_\-ALIGN\_\-DOWN(13, 4)} would return 12. \hypertarget{group__BasicDef_gaad465603954df66df7791befd55ff325}{
\index{BasicDef@{BasicDef}!RT\_\-FALSE@{RT\_\-FALSE}}
\index{RT\_\-FALSE@{RT\_\-FALSE}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-FALSE}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-FALSE~0}}
\label{group__BasicDef_gaad465603954df66df7791befd55ff325}
boolean fails \hypertarget{group__BasicDef_gab3633bbb2a09b3406b19463ffc634345}{
\index{BasicDef@{BasicDef}!RT\_\-NULL@{RT\_\-NULL}}
\index{RT\_\-NULL@{RT\_\-NULL}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-NULL}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-NULL~(0)}}
\label{group__BasicDef_gab3633bbb2a09b3406b19463ffc634345}
Similar as the {\ttfamily NULL} in C library. \hypertarget{group__BasicDef_ga8ac050659ff67d9c8be5b59ddd1790cc}{
\index{BasicDef@{BasicDef}!RT\_\-REVISION@{RT\_\-REVISION}}
\index{RT\_\-REVISION@{RT\_\-REVISION}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-REVISION}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-REVISION~0L}}
\label{group__BasicDef_ga8ac050659ff67d9c8be5b59ddd1790cc}
revise version number \hypertarget{group__BasicDef_gae2986d88dd8f5b076c9089931463c6d2}{
\index{BasicDef@{BasicDef}!RT\_\-SUBVERSION@{RT\_\-SUBVERSION}}
\index{RT\_\-SUBVERSION@{RT\_\-SUBVERSION}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-SUBVERSION}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-SUBVERSION~1L}}
\label{group__BasicDef_gae2986d88dd8f5b076c9089931463c6d2}
minor version number \hypertarget{group__BasicDef_ga5e3d4a1b993df67473bc161096dba218}{
\index{BasicDef@{BasicDef}!RT\_\-TRUE@{RT\_\-TRUE}}
\index{RT\_\-TRUE@{RT\_\-TRUE}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-TRUE}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-TRUE~1}}
\label{group__BasicDef_ga5e3d4a1b993df67473bc161096dba218}
boolean true \hypertarget{group__BasicDef_gad78104e02f13751dab9952ba4d9788f8}{
\index{BasicDef@{BasicDef}!RT\_\-VERSION@{RT\_\-VERSION}}
\index{RT\_\-VERSION@{RT\_\-VERSION}!BasicDef@{BasicDef}}
\subsubsection[{RT\_\-VERSION}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-VERSION~1L}}
\label{group__BasicDef_gad78104e02f13751dab9952ba4d9788f8}
major version number \hypertarget{group__BasicDef_gabbb9147df3a5650528a1c583536bcd62}{
\index{BasicDef@{BasicDef}!RTTHREAD\_\-VERSION@{RTTHREAD\_\-VERSION}}
\index{RTTHREAD\_\-VERSION@{RTTHREAD\_\-VERSION}!BasicDef@{BasicDef}}
\subsubsection[{RTTHREAD\_\-VERSION}]{\setlength{\rightskip}{0pt plus 5cm}\#define RTTHREAD\_\-VERSION}}
\label{group__BasicDef_gabbb9147df3a5650528a1c583536bcd62}
{\bfseries 值:}
\begin{DoxyCode}
((RT_VERSION * 10000) + \
                                         (RT_SUBVERSION * 100) + RT_REVISION)
\end{DoxyCode}


\subsection{类型定义文档}
\hypertarget{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}{
\index{BasicDef@{BasicDef}!rt\_\-base\_\-t@{rt\_\-base\_\-t}}
\index{rt\_\-base\_\-t@{rt\_\-base\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-base\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef long {\bf rt\_\-base\_\-t}}}
\label{group__BasicDef_gab7ede51a23ea8b78381b5a59506edd7d}
Nbit CPU related date type \hypertarget{group__BasicDef_ga3e03a3519ef7e33d13ebd34c482db49c}{
\index{BasicDef@{BasicDef}!rt\_\-bool\_\-t@{rt\_\-bool\_\-t}}
\index{rt\_\-bool\_\-t@{rt\_\-bool\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-bool\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf rt\_\-bool\_\-t}}}
\label{group__BasicDef_ga3e03a3519ef7e33d13ebd34c482db49c}
boolean type \hypertarget{group__BasicDef_ga79ffea5dac0a5c145822b5b1c9b55a09}{
\index{BasicDef@{BasicDef}!rt\_\-dev\_\-t@{rt\_\-dev\_\-t}}
\index{rt\_\-dev\_\-t@{rt\_\-dev\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-dev\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-ubase\_\-t} {\bf rt\_\-dev\_\-t}}}
\label{group__BasicDef_ga79ffea5dac0a5c145822b5b1c9b55a09}
Type for device \hypertarget{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{
\index{BasicDef@{BasicDef}!rt\_\-err\_\-t@{rt\_\-err\_\-t}}
\index{rt\_\-err\_\-t@{rt\_\-err\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-err\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-base\_\-t} {\bf rt\_\-err\_\-t}}}
\label{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}
Type for error number \hypertarget{group__BasicDef_gac0517c5e13c1374877d8462b84e72755}{
\index{BasicDef@{BasicDef}!rt\_\-flag\_\-t@{rt\_\-flag\_\-t}}
\index{rt\_\-flag\_\-t@{rt\_\-flag\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-flag\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-base\_\-t} {\bf rt\_\-flag\_\-t}}}
\label{group__BasicDef_gac0517c5e13c1374877d8462b84e72755}
Type for flags \hypertarget{group__BasicDef_gad48863e8de10f558c764213f434d14cd}{
\index{BasicDef@{BasicDef}!rt\_\-int16\_\-t@{rt\_\-int16\_\-t}}
\index{rt\_\-int16\_\-t@{rt\_\-int16\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-int16\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed short {\bf rt\_\-int16\_\-t}}}
\label{group__BasicDef_gad48863e8de10f558c764213f434d14cd}
16bit integer type \hypertarget{group__BasicDef_gae5c6ccee15f067714ca9c44e509c4047}{
\index{BasicDef@{BasicDef}!rt\_\-int32\_\-t@{rt\_\-int32\_\-t}}
\index{rt\_\-int32\_\-t@{rt\_\-int32\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-int32\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed long {\bf rt\_\-int32\_\-t}}}
\label{group__BasicDef_gae5c6ccee15f067714ca9c44e509c4047}
32bit integer type \hypertarget{group__BasicDef_ga0718c1881c49fdb1cfd55946ddfe0f64}{
\index{BasicDef@{BasicDef}!rt\_\-int8\_\-t@{rt\_\-int8\_\-t}}
\index{rt\_\-int8\_\-t@{rt\_\-int8\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-int8\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed char {\bf rt\_\-int8\_\-t}}}
\label{group__BasicDef_ga0718c1881c49fdb1cfd55946ddfe0f64}
8bit integer type \hypertarget{group__BasicDef_ga0fd4981851ce935649b6723a81f2f1bf}{
\index{BasicDef@{BasicDef}!rt\_\-off\_\-t@{rt\_\-off\_\-t}}
\index{rt\_\-off\_\-t@{rt\_\-off\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-off\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-base\_\-t} {\bf rt\_\-off\_\-t}}}
\label{group__BasicDef_ga0fd4981851ce935649b6723a81f2f1bf}
Type for offset \hypertarget{group__BasicDef_ga8011d259fdfc54b8a9aa006b4d49ac14}{
\index{BasicDef@{BasicDef}!rt\_\-size\_\-t@{rt\_\-size\_\-t}}
\index{rt\_\-size\_\-t@{rt\_\-size\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-size\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-ubase\_\-t} {\bf rt\_\-size\_\-t}}}
\label{group__BasicDef_ga8011d259fdfc54b8a9aa006b4d49ac14}
Type for size number \hypertarget{group__BasicDef_ga66c400929925784dba020d671154978a}{
\index{BasicDef@{BasicDef}!rt\_\-tick\_\-t@{rt\_\-tick\_\-t}}
\index{rt\_\-tick\_\-t@{rt\_\-tick\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-tick\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-uint32\_\-t} {\bf rt\_\-tick\_\-t}}}
\label{group__BasicDef_ga66c400929925784dba020d671154978a}
Type for tick count \hypertarget{group__BasicDef_ga102dfa15727cd1166d97cf5392dfe3b9}{
\index{BasicDef@{BasicDef}!rt\_\-time\_\-t@{rt\_\-time\_\-t}}
\index{rt\_\-time\_\-t@{rt\_\-time\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-time\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf rt\_\-uint32\_\-t} {\bf rt\_\-time\_\-t}}}
\label{group__BasicDef_ga102dfa15727cd1166d97cf5392dfe3b9}
Type for time stamp \hypertarget{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}{
\index{BasicDef@{BasicDef}!rt\_\-ubase\_\-t@{rt\_\-ubase\_\-t}}
\index{rt\_\-ubase\_\-t@{rt\_\-ubase\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-ubase\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned long {\bf rt\_\-ubase\_\-t}}}
\label{group__BasicDef_ga958cc0f5d3f7bf59850cd8bd13a4aeb0}
Nbit unsigned CPU related data type \hypertarget{group__BasicDef_ga5acba55f46553417996ac70828b874da}{
\index{BasicDef@{BasicDef}!rt\_\-uint16\_\-t@{rt\_\-uint16\_\-t}}
\index{rt\_\-uint16\_\-t@{rt\_\-uint16\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-uint16\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned short {\bf rt\_\-uint16\_\-t}}}
\label{group__BasicDef_ga5acba55f46553417996ac70828b874da}
16bit unsigned integer type \hypertarget{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{
\index{BasicDef@{BasicDef}!rt\_\-uint32\_\-t@{rt\_\-uint32\_\-t}}
\index{rt\_\-uint32\_\-t@{rt\_\-uint32\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-uint32\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned long {\bf rt\_\-uint32\_\-t}}}
\label{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}
32bit unsigned integer type \hypertarget{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{
\index{BasicDef@{BasicDef}!rt\_\-uint8\_\-t@{rt\_\-uint8\_\-t}}
\index{rt\_\-uint8\_\-t@{rt\_\-uint8\_\-t}!BasicDef@{BasicDef}}
\subsubsection[{rt\_\-uint8\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned char {\bf rt\_\-uint8\_\-t}}}
\label{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}
8bit unsigned integer type 